package com.tvein.sanguo.character.controller
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;
	//custom
	import com.tvein.sanguo.character.view.CharacterMediator;
//
	public class CharacterEnergy extends SimpleFabricationCommand implements ICommand
	{
		private var characterMediator:CharacterMediator;
		
		override public function execute(notification:INotification) : void
		{
			characterMediator = facade.retrieveMediator(CharacterMediator.NAME) as CharacterMediator;
			
			characterMediator.characterShell.SetEnergy(int(notification.getBody()));
		}
	}
}